package com.ssms.dao;

import com.ssms.model.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

    List<Course> selectPage(@Param("start") int start, @Param("size") int size, @Param("subjectId") Integer subjectId);

    int selectPageCount(@Param("subjectId") Integer subjectId);

    List<Course> selectAllBySubjectId(@Param("subjectId") Integer subjectId);

    int checkCourseName(Course record);

    Course selectByName(String courseName);

    List<Course> selectAll();

}